import { _decorator, AudioClip, Component, Node, Prefab, SpriteFrame } from 'cc';
import { CubeInfo } from './GameScene/SingleCubeBg';
const { ccclass, property } = _decorator;

/**
 * 资源列表
 */
export const AssetList = {
    BundleName: "GameRes",
    Scene: {//场景
        LoginScene: "LoginScene",
        GameScene: "GameScene"
    },
    Pop: {//顶部弹窗
        GAMEEND: "GameEnd",
        GAMESET: "GameSet"
    },
    Top: {//顶部
        NoTouch: "TopNoTouch",
        Prompt: "TopPrompt"
    },
    Prefabs: {//预设体
        GameEleBg: "game_elebg",
        GameSingleSprite: "game_singlesprite",
        SingelControl: "singlecontrol",
        AddScore: "add_score"
    },
    Config: {//配置

    },
    Asset: {//加载资源
        Prefabs: { path: "Prefab", type: Prefab },
        Sounds: { path: "Sound", type: AudioClip },
        SpriteFrames: { path: "SpriteFrame", type: SpriteFrame },
    },
    SpriteFrame: {//纹理
        Ele: "game_ele",
    }
}

@ccclass('Global')
export class Global {

    //是否是侧边栏
    static IsCebian: boolean = false;

    //是否是测试模式
    static IsDebug: boolean = false;

    //是否是微信环境
    static IsWx: boolean = false;

    //是否是抖音
    static IsDy: boolean = false;

    //游戏是否结束
    static IsEnd: boolean = false;

    //消失方块信息
    static DisCubeInfo: CubeInfo[] = [
        { hor: 0, ver: 0, ele: -1 },
        { hor: 0, ver: 1, ele: -1 },
        { hor: 1, ver: 0, ele: -1 },
        { hor: 6, ver: 0, ele: -1 },
        { hor: 7, ver: 0, ele: -1 },
        { hor: 7, ver: 1, ele: -1 },
        { hor: 0, ver: 6, ele: -1 },
        { hor: 0, ver: 7, ele: -1 },
        { hor: 1, ver: 7, ele: -1 },
        { hor: 7, ver: 6, ele: -1 },
        { hor: 6, ver: 7, ele: -1 },
        { hor: 7, ver: 7, ele: -1 },
    ]

    //横向砖块数量
    static HorNum: number = 8;
    //纵向砖块数量
    static VerNum: number = 8;

    //方块种类
    static CubeStyle: number = 5;


}


